{include file="header.html"}
<script src="/style/lefttime.js"></script>
<link rel="stylesheet" href="{url('/style/css/member.css')}">
{include file="ur_here.html"}
<div id="container">
<div class="fn-clear mt20 pb20">
    {include file="member/menu.html"}
    <div class="fn-right hy-r">

        <div class="fn-clear">
            {if $data.count_auc gt 0 || $data.count_cod gt 0 || $data.count_codDb gt 0}
            <div class="hy-tips mb10">
                <ul>
                    {if $data.count_auc gt 0}
                    <li>您有{$data.count_auc}条{$L.unit_pay}最高价获得记录未购买，<a href="{'/member/auction?status=2'|url}">点击去购买</a>！</li>
                    {/if}

                    {if $data.count_cod gt 0}
                    <li>您有{$data.count_cod}条{$L.unit_pay}{$L.unit_winning}记录未领取，<a href="{'/member/cod'|url}">点击去领取</a>！</li>
                    {/if}

                    {if $data.count_codDb gt 0}
                    <li>您有{$data.count_codDb}条{$L.unit_yun}{$L.unit_winning}记录未领取，<a href="{'/member/luck'|url}">点击去领取</a>！</li>
                    {/if}
                </ul>
            </div>
            {/if}

            {if $data.isfree}
            <div class="hy-gg" id="free">
                <div class="title">
                    <h2>做任务，赚{$L.unit_pay_points}</h2>
                </div>
                <ul class="pb-list fn-clear">
                    {if $site_config.isPhoto gt 0 && $data.memberOther.isPhoto neq 1}
                    <li id="isPhoto"><a href="javascript:;" onclick="getPoints('isPhoto')" class="btn btn-green">领取</a><span><a href="{url('/member/photo')}" class="color02">“上传头像”</a>即可领取{$site_config.isPhoto}<a href="/content/index/78" target="_blank" class="layerTip" _title="{$L.unit_pay_points}用途">{$L.unit_pay_points}</a><span class="color03">（每个用户限领一次）</span>。</span></li>
                    {/if}
                    {if $site_config.isIdcard gt 0 && $data.memberOther.isIdcard neq 1}
                    <li id="isIdcard"><a href="javascript:;" onclick="getPoints('isIdcard')" class="btn btn-green">领取</a><span><a href="{url('/member/verifyidcard')}" class="color02">“实名认证”</a>即可领取{$site_config.isIdcard}<a>{$L.unit_db_points}{$L.unit_bonus}</a><span class="color03">（每个用户限领一次）</span>。</span></li>
                    {/if}
                    {if $site_config.isMail gt 0 && $data.memberOther.isMail neq 1}
                    <li id="isMail"><a href="javascript:;" onclick="getPoints('isMail')" class="btn btn-green">领取</a><span><a href="{url('/member/verifyEmail')}" class="color02">“邮箱认证”</a>即可领取{$site_config.isMail}<a>{$L.unit_db_points}{$L.unit_bonus}</a><span class="color03">（每个用户限领一次）</span>。</span></li>
                    {/if}
                    {if $site_config.apply_jufu!=1}
                    {if $site_config.ivt1 gt 0}
                    <li><a href="{'/member/myivt'|url}" class="btn btn-green">立即邀请</a><span><a href="{'/member/myivt'|url}" class="color02">“邀请好友”</a>每推荐1位好友注册，领{$site_config.ivt1}{$L.unit_pay_points}。<span class="color03"></span>。</span></li>
                    {/if}
                    {/if}
                    {if $site_config.signin_jl gt 0 && $is_signin eq 0}
                    <li id="isSign"><a class="btn btn-green btn-sing">立即签到</a><span>每日签到：即可获取{$site_config.signin_jl}<a href="/content/index/78" target="_blank" class="layerTip" _title="{$L.unit_pay_points}用途">{$L.unit_pay_points}</a>！ <span class="color03">（每日一次）</span>。</span></li>
                    {/if}
                    {if $site_config.isDaren gt 0}
                    <li id="isDaren"><a href="javascript:;" onclick="getPoints('isDaren')" class="btn btn-green">领取</a><span>{$L.unit_yun}达人：参与人次（不含体验拍和免费{$L.unit_yun}商品）参与次数每超过50次后获{$site_config.isDaren}个<a href="/content/index/78" target="_blank" class="layerTip" _title="{$L.unit_pay_points}用途">{$L.unit_pay_points}</a>！<span class="color03">（不限次数）</span>。</span></li>
                    {/if}
                    <!--<li id="isJpDaren"><a href="javascript:;" onclick="getPoints('isJpDaren')" class="btn btn-green">领取</a><span>{$L.unit_pay}达人：参与{$L.unit_pay}商品数（不含体验拍和免费{$L.unit_yun}商品）每超过50次后获{$site_config.isJpDaren}个<a href="/content/index/78" target="_blank" class="layerTip" _title="{$L.unit_pay_points}用途">{$L.unit_pay_points}</a>！<span class="color03">（不限次数 ）</span>。</span></li>-->
                </ul>
            </div>
            {/if}
        </div>

        {zz mod=content var=tagGG module=article field='id,title,url,createtime' catid=$smarty.const.NOTE_ID limit=5}
        {if $tagGG}
        <div class="hy-gg hy-noborder">
            <div class="title">
                <h2>公告信息</h2>
            </div>
            <ul class="gg-list fn-clear">
                {foreach from=$tagGG  item=m}
                <li><a href="{$m.url|url}" style="color:#e54048">{$m.title}</a><span style="color: #999">{$m.createtime|date_format:'Y-m-d'}</span></li>
                {/foreach}
            </ul>
        </div>
        {/if}

        {if $data.mydb|count gt 7}
        <div class="fn-clear hy-tjxh hy-noborder">
            <div class="title">
                <h2>我的{$L.unit_yun}</h2>
            </div>
            <div class="cqhxh-lsit">
                <ul>
                    {foreach from=$data.mydb item=m}
                    <li>
                        <div class="w-goods">
                            <div class="w-goods-pic">
                                {if $m.type eq 2}<img class="zjf" height="55" src="/style/images/daz.png" width="47" />{/if}
                                <a href="{'/yunbuy/detail/'|cat:$m.buy_id|url}" target="_blank" title="{$m.title}"><img alt="{$m.title}" src="{zz mod=fileurl source=$m.imgurl_src width=205 height=127 type=0}"></a>
                            </div>
                            <p class="w-goods-title">
                                <a href="{'/yunbuy/detail/'|cat:$m.buy_id|url}" target="_blank" title="{$m.title}">(第{$m.qishu}期) {$m.goods_name}</a></p>
                            <p>总需：<b class="color01">{$m.need_num}</b> {if $m.type eq 1}人次{else}{$L.unit_pay_points}{/if}，</p>
                            <p>参与：<b class="color01">{$m.buy_num|default:0}</b> {if $m.type eq 1}人次{else}{$L.unit_pay_points}{/if}，</p>
                            <p>剩余：<b class="color01">{$m.end_num|default:0}</b> {if $m.type eq 1}人次{else}{$L.unit_pay_points}{/if}</p>
                            <div class="w-goods-opr1"><a href="{'/yunbuy/detail/'|cat:$m.buy_id|url}" style="" target="_blank">详情&gt; </a></div>
                        </div>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </div>
        {/if}

        {if $data.my|count gt 3}
        <div class="fn-clear hy-tjxh hy-noborder">
            <div class="title">
                <h2>我的{$L.unit_pay}</h2>
            </div>
            <div class="cqhxh-lsit">
                <ul>
                    {foreach from=$data.my item=auction}
                    {include file="auction/lbi_auction.html"}
                    {/foreach}
                </ul>
            </div>
        </div>
        {/if}

        {if $data.love}
        <div class="fn-clear hy-tjxh hy-noborder">
            <div class="title">
                <h2>猜你喜欢</h2>
            </div>
            <div class="cqhxh-lsit">
                <ul>
                    {foreach from=$data.love item=m}
                    <li>
                        <div class="w-goods">
                            <div class="w-goods-pic">
                                {if $m.type eq 2}<img class="zjf" height="55" src="/style/images/daz.png" width="47" />{/if}
                                <a href="{'/yunbuy/detail/'|cat:$m.buy_id|url}" target="_blank" title="{$m.title}"><img alt="{$m.title}" src="{zz mod=fileurl source=$m.imgurl_src width=205 height=127 type=0}"></a>
                            </div>
                            <p class="w-goods-title">
                                <a href="{'/yunbuy/detail/'|cat:$m.buy_id|url}" target="_blank" title="{$m.title}">(第{$m.qishu}期) {$m.goods_name}</a></p>
                            <p>总需：<b class="color01">{$m.need_num}</b> {if $m.type eq 1}人次{else}{$L.unit_pay_points}{/if}，</p>
                            <p>参与：<b class="color01">{$m.buy_num|default:0}</b> {if $m.type eq 1}人次{else}{$L.unit_pay_points}{/if}，</p>
                            <p>剩余：<b class="color01">{$m.end_num|default:0}</b> {if $m.type eq 1}人次{else}{$L.unit_pay_points}{/if}</p>
                            <div class="w-goods-opr1"><a href="{'/yunbuy/detail/'|cat:$m.buy_id|url}" style="" target="_blank">详情&gt; </a></div>
                        </div>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </div>
        {/if}

    </div>
</div>
</div>
{literal}
<script type="text/javascript">
    $(function(){
        if(location.hash=='#free'){
            $('#free').css('border','2px solid #e54048');
        }
    });

    function getPoints(type){
        $.post('/content/getPoints',{ type:type },function(data){
            if(data.msg){
                if(data.error == 0){
                    layer.msg(data.msg, 2, { type:1 });
                    if(type!='isJpDaren' || type!='isDaren'){
                        $('#'+type).hide();
                    }
                }else{
                    layer.tips(data.msg, '#'+type+' span', { time:3 });
                }
            }
        },"json");
    }
</script>
{/literal}
{include file="footer.html"}